home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / blkspell / borlxapp.rc < prev    next >
Text File  |  1998-09-22  |  10KB  |  317 lines

  1. //----------------------------------------------------------------------------
  2. //  Project Borl_ex
  3. //  BlockTeq Software
  4. //  Copyright ⌐ 1998. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:  Borl_ex Application
  7. //  FILE:     borlxapp.rc
  8. //  AUTHOR:     D.R.Block
  9. //
  10. //  OVERVIEW
  11. //  ~~~~~~~~
  12. //  All resources defined here.
  13. //
  14. //----------------------------------------------------------------------------
  15.  
  16. #if !defined(WORKSHOP_INVOKED)
  17. # include <windows.h>
  18. #endif
  19. #include "borlxapp.rh"
  20.  
  21.  
  22. IDM_SDI MENU
  23. BEGIN
  24.   POPUP "&File"
  25.   BEGIN
  26.     MENUITEM "&New", CM_FILENEW
  27.     MENUITEM "&Open...", CM_FILEOPEN
  28.     MENUITEM SEPARATOR
  29.     MENUITEM "&Save", CM_FILESAVE, GRAYED
  30.     MENUITEM "Save &As...", CM_FILESAVEAS, GRAYED
  31.     MENUITEM SEPARATOR
  32.     MENUITEM "E&xit\tAlt+F4", CM_EXIT
  33.   END
  34.  
  35.   MENUITEM SEPARATOR
  36.  
  37.   POPUP "&Edit"
  38.   BEGIN
  39.     MENUITEM "&Undo\tAlt+BkSp", CM_EDITUNDO, GRAYED
  40.     MENUITEM SEPARATOR
  41.     MENUITEM "Cu&t\tShift+Del", CM_EDITCUT, GRAYED
  42.     MENUITEM "&Copy\tCtrl+Ins", CM_EDITCOPY, GRAYED
  43.     MENUITEM "&Paste\tShift+Ins", CM_EDITPASTE, GRAYED
  44.     MENUITEM SEPARATOR
  45.     MENUITEM "Clear &All\tCtrl+Del", CM_EDITCLEAR, GRAYED
  46.     MENUITEM "&Delete\tDel", CM_EDITDELETE, GRAYED
  47.   END
  48.  
  49.   POPUP "&Search"
  50.   BEGIN
  51.     MENUITEM "&Find...", CM_EDITFIND, GRAYED
  52.     MENUITEM "&Replace...", CM_EDITREPLACE, GRAYED
  53.     MENUITEM "&Next\aF3", CM_EDITFINDNEXT, GRAYED
  54.   END
  55.  
  56.   MENUITEM SEPARATOR
  57.  
  58.   MENUITEM SEPARATOR
  59.  
  60.   MENUITEM SEPARATOR
  61.  
  62.  
  63.   MENUITEM SEPARATOR
  64.  
  65.   POPUP "&Help"
  66.   BEGIN
  67.     MENUITEM "&About...", CM_HELPABOUT
  68.   END
  69.  
  70. END
  71.  
  72.  
  73. // Accelerator table for short-cut to menu commands. (include/owl/editfile.rc)
  74. //
  75. IDM_SDI ACCELERATORS
  76. BEGIN
  77.   VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
  78.   VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
  79.   VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
  80.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  81.   VK_BACK,   CM_EDITUNDO, VIRTKEY, ALT
  82.   VK_F3,     CM_EDITFINDNEXT, VIRTKEY
  83. END
  84.  
  85.  
  86.  
  87.  
  88.  
  89. // Table of help hints displayed in the status bar.
  90. //
  91. STRINGTABLE
  92. BEGIN
  93.   -1,                   "File/document operations"
  94.   CM_FILENEW,           "Creates a new window"
  95.   CM_FILEOPEN,          "Opens a window"
  96.   CM_FILECLOSE,         "Closes the active document"
  97.   CM_FILESAVE,          "Saves the active document"
  98.   CM_FILESAVEAS,        "Saves the active document with a new name"
  99.   CM_EXIT,              "Quits Borl_ex and prompts to save the documents"
  100.   CM_EDITUNDO-1,        "Edit operations"
  101.   CM_EDITUNDO,          "Reverses the last operation"
  102.   CM_EDITCUT,           "Cuts the selection and puts it on the Clipboard"
  103.   CM_EDITCOPY,          "Copies the selection and puts it on the Clipboard"
  104.   CM_EDITPASTE,         "Inserts the Clipboard contents at the insertion point"
  105.   CM_EDITDELETE,        "Deletes the selection"
  106.   CM_EDITCLEAR,         "Clears the active document"
  107.   CM_EDITADD,           "Inserts a new line"
  108.   CM_EDITEDIT,          "Edits the current line"
  109.   CM_EDITFIND-1,        "Search/replace operations"
  110.   CM_EDITFIND,          "Finds the specified text"
  111.   CM_EDITREPLACE,       "Finds the specified text and changes it"
  112.   CM_EDITFINDNEXT,      "Finds the next match"
  113.   CM_HELPABOUT-1,       "Access About"
  114.   CM_HELPABOUT,         "About the Borl_ex application"
  115. END
  116.  
  117.  
  118. //
  119. // OWL string table
  120. //
  121.  
  122. // EditFile (include/owl/editfile.rc and include/owl/editsear.rc)
  123. //
  124. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  125. BEGIN
  126.   IDS_CANNOTFIND,       "Cannot find ""%s""."
  127.   IDS_UNTITLED,         "Document"
  128.   IDS_UNABLEREAD,       "Unable to read file %s from disk."
  129.   IDS_UNABLEWRITE,      "Unable to write file %s to disk."
  130.   IDS_FILECHANGED,      "The text in the %s file has changed.\n\nDo you want to save the changes?"
  131.   IDS_FILEFILTER,       "Text files|*.txt|AllFiles|*.*|"
  132. END
  133.  
  134.  
  135. // Exception string resources (include/owl/except.rc)
  136. //
  137. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  138. BEGIN
  139.   IDS_OWLEXCEPTION,     "ObjectWindows Exception"
  140.   IDS_UNHANDLEDXMSG,    "Unhandled Exception"
  141.   IDS_OKTORESUME,       "OK to resume?"
  142.   IDS_UNKNOWNEXCEPTION, "Unknown exception"
  143.  
  144.   IDS_UNKNOWNERROR,     "Unknown error"
  145.   IDS_NOAPP,            "No application object"
  146.   IDS_OUTOFMEMORY,      "Out of memory"
  147.   IDS_INVALIDMODULE,    "Invalid module specified for window"
  148.   IDS_INVALIDMAINWINDOW,"Invalid MainWindow"
  149.   IDS_VBXLIBRARYFAIL,   "VBX Library init failure"
  150.  
  151.   IDS_INVALIDWINDOW,    "Invalid window %s"
  152.   IDS_INVALIDCHILDWINDOW,"Invalid child window %s"
  153.   IDS_INVALIDCLIENTWINDOW,"Invalid client window %s"
  154.  
  155.   IDS_CLASSREGISTERFAIL,"Class registration fail for window %s"
  156.   IDS_CHILDREGISTERFAIL,"Child class registration fail for window %s"
  157.   IDS_WINDOWCREATEFAIL, "Create fail for window %s"
  158.   IDS_WINDOWEXECUTEFAIL,"Execute fail for window %s"
  159.   IDS_CHILDCREATEFAIL,  "Child create fail for window %s"
  160.  
  161.   IDS_MENUFAILURE,      "Menu creation failure"
  162.   IDS_VALIDATORSYNTAX,  "Validator syntax error"
  163.   IDS_PRINTERERROR,     "Printer error"
  164.  
  165.   IDS_LAYOUTINCOMPLETE, "Incomplete layout constraints specified in window %s"
  166.   IDS_LAYOUTBADRELWIN,  "Invalid relative window specified in layout constraint in window %s"
  167.  
  168.   IDS_GDIFAILURE,       "GDI failure"
  169.   IDS_GDIALLOCFAIL,     "GDI allocate failure"
  170.   IDS_GDICREATEFAIL,    "GDI creation failure"
  171.   IDS_GDIRESLOADFAIL,   "GDI resource load failure"
  172.   IDS_GDIFILEREADFAIL,  "GDI file read failure"
  173.   IDS_GDIDELETEFAIL,    "GDI object %X delete failure"
  174.   IDS_GDIDESTROYFAIL,   "GDI object %X destroy failure"
  175.   IDS_INVALIDDIBHANDLE, "Invalid DIB handle %X"
  176. END
  177.  
  178.  
  179. // General Window's status bar messages. (include/owl/statusba.rc)
  180. //
  181. STRINGTABLE
  182. BEGIN
  183.   IDS_MODES             "EXT|CAPS|NUM|SCRL|OVR|REC"
  184.   IDS_MODESOFF          "   |  |   |  |   |   "
  185.   SC_SIZE,              "Changes the size of the window"
  186.   SC_MOVE,              "Moves the window to another position"
  187.   SC_MINIMIZE,          "Reduces the window to an icon"
  188.   SC_MAXIMIZE,          "Enlarges the window to it maximum size"
  189.   SC_RESTORE,           "Restores the window to its previous size"
  190.   SC_CLOSE,             "Closes the window"
  191.   SC_TASKLIST,          "Opens task list"
  192.   SC_NEXTWINDOW,        "Switches to next window"
  193. END
  194.  
  195.  
  196. // Validator messages (include/owl/validate.rc)
  197. //
  198. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  199. BEGIN
  200.   IDS_VALPXPCONFORM     "Input does not conform to picture:\n""%s"""
  201.   IDS_VALINVALIDCHAR    "Invalid character in input"
  202.   IDS_VALNOTINRANGE     "Value is not in the range %ld to %ld."
  203.   IDS_VALNOTINLIST      "Input is not in valid-list"
  204. END
  205.  
  206.  
  207. //
  208. // Misc application definitions
  209. //
  210.  
  211. // Application ICON
  212. //
  213. IDI_SDIAPPLICATION ICON "applsdi.ico"
  214.  
  215.  
  216. // Client Dialog
  217. //
  218. IDD_CLIENT DIALOG 6, 15, 207, 111
  219. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
  220. CAPTION "Dialog Client"
  221. FONT 8, "MS Sans Serif"
  222. {
  223.  CONTROL "Edit1", IDC_EDIT1, "edit", ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 9, 9, 188, 43
  224.  CONTROL "SpellCheck", IDOK, "BUTTON", BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 40, 64, 50, 14
  225.  CONTROL "Cancel", IDCANCEL, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 116, 64, 50, 14
  226.  CONTROL "Show License", IDC_BUTTON1, "button", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 75, 90, 56, 14
  227. }
  228.  
  229.  
  230. // About box.
  231. //
  232.  
  233.  
  234. // Version info.
  235. //
  236. #if !defined(__DEBUG_)
  237.  
  238. // Non-Debug VERSIONINFO
  239. //
  240. 1 VERSIONINFO LOADONCALL MOVEABLE
  241. FILEVERSION 1, 0, 0, 0
  242. PRODUCTVERSION 1, 0, 0, 0
  243. FILEFLAGSMASK 0
  244. FILEFLAGS VS_FFI_FILEFLAGSMASK
  245. #if defined(BI_PLAT_WIN32)
  246. FILEOS VOS__WINDOWS32
  247. #else
  248. FILEOS VOS__WINDOWS16
  249. #endif
  250. FILETYPE VFT_APP
  251. BEGIN
  252.   BLOCK "StringFileInfo"
  253.   BEGIN
  254.     // Language type = U.S. English(0x0409) and Character Set = Windows, Multilingual(0x04e4)
  255.     BLOCK "040904E4"              // Matches VarFileInfo Translation hex value.
  256.     BEGIN
  257.       VALUE "CompanyName", "BlockTeq Software\000"
  258.       VALUE "FileDescription", "Borl_ex for Windows\000"
  259.       VALUE "FileVersion", "1.0\000"
  260.       VALUE "InternalName", "Borl_ex\000"
  261.       VALUE "LegalCopyri